package org.dx.oho.entity;

import java.util.Objects;

/**
 * create by duanx 2020/11/11
 *@description： 店铺图片信息
 *@classname: ShopImg
 *@author: duanx
 *@date: 2020/11/11 10:20
 **/
public class ShopImg extends BaseEntity {
    /**
     * 图片ID
     */
    private Integer imgId;
    /**
     * 店铺
     */
    private Shop shop;
    /**
     * 图片位置
     */
    private String imgAddr;

    public Integer getImgId() {
        return imgId;
    }

    public void setImgId(Integer imgId) {
        this.imgId = imgId;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public String getImgAddr() {
        return imgAddr;
    }

    public void setImgAddr(String imgAddr) {
        this.imgAddr = imgAddr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ShopImg shopImg = (ShopImg) o;
        return Objects.equals(imgId, shopImg.imgId) &&
                Objects.equals(shop, shopImg.shop) &&
                Objects.equals(imgAddr, shopImg.imgAddr);
    }

    @Override
    public int hashCode() {
        return Objects.hash(imgId, shop, imgAddr);
    }

    @Override
    public String toString() {
        return "ShopImg{" +
                "imgId=" + imgId +
                ", shop=" + shop +
                ", imgAddr='" + imgAddr + '\'' +
                '}';
    }
}
